package com.zzf.单例模式.懒汉式;

public class People {

    private static People people;

    private People(){}

    public synchronized static People getPeople(){
        if (people == null){
            people = new People();
        }
        return people;
    }

}
